package com.xuerhua.yxt.common.enums;

public enum SendeeType {

	PARENT(1, "家长"),
	TEACHER(2, "老师");
	
	private final int code;
	
	private final String value;
	
	private SendeeType(int code, String value) {
		this.code = code;
		this.value = value;
	}

	public static String getValue(int key) {
		for(SendeeType type : SendeeType.values()) {
			if(type.getCode() == key) {
				return type.getValue();
			}
		}
		return null;
	}
	
	public int getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}
	
}
